<template>
  <div class="sensor">
    <i class="iconfont icon-sensor" />
    {{ name }}
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'SensorNode',
  inject: ['getNode'],
  data () {
    return {
      name: 'XXX传感器'
    }
  }
})
</script>
<style lang="scss" scoped>
  .sensor{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    .icon-sensor{
      font-size: 60px;
    }
  }
</style>
